/**
 * This is the test-case created to simulate the -ve testcase for DestroyLock.
 * It acquires a lock and goes in Yield() - to ensure that other improper thread can simulate the -ve testcase.
 * [ The other thread in the different name space would be spawed in other process by exec2.c ]
 */
#include "syscall.h"

int lockId=-1;

int main()
{
	Print("Inside exec executable file\n");
	lockId = CreateLock((char *)"testlock",8);
	Acquire(lockId);
	Yield();
	Yield();
	Yield();
	Release(lockId);
	Exit(0);

}
